<template>
  <div class="point">
    <div class="icon">
      <img
        @click="goPointsCenter"
        class="iconleft"
        src="../../../components/My/image/weibiaoti.png"
        alt=""
      />
      <h1>积分明细</h1>
    </div>
    <div class="tab">
      <van-tabs v-model="active">
        <van-tab title="积分收入">
          <div class="date">
            <div class="datanumber">2022-07</div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">连续签到2天</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">连续签到2天</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">连续签到2天</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">连续签到2天</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
          <div class="date">
            <div class="datanumber">2022-04</div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">皱纹性测试</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">色素性测试</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">耐敏性测试</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">干油性测试</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
        </van-tab>
        <van-tab title="积分输出">
          <div class="date">
            <div class="datanumber">2022-07</div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">连续签到2天</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">连续签到2天</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">连续签到2天</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
          <div class="consecutive">
            <div class="concount">
              <p class="counta">连续签到2天</p>
              <p class="countb">2020-07-22</p>
            </div>
          </div>
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
  methods: {
    goPointsCenter() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="scss">
* {
  padding: 0;
  margin: 0;
}
.point {
  width: 750px;
  height: 1624px;
  background: #f5f5f5;
  .icon {
    margin-left: 42px;
    height: 162px;
    line-height: 48px;
    padding-top: 114px;
    margin-right: 32px;
  }
  .icon .iconleft {
    float: left;
    width: 30px;
    height: 30px;
    display: block;
    margin: 9px 0px;
  }
  .icon .iconright {
    float: right;
    width: 30px;
    height: 30px;
    display: block;
    margin: 9px 0px;
  }
  .icon h1 {
    float: left;
    width: 200px;
    height: 48px;
    position: relative;
    left: 275px;
    font-size: 35px;
  }
  .van-tabs__nav {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    /* display: flex; */
    background-color: #fff;
    -webkit-user-select: none;
    user-select: none;
    background-color: transparent;
    width: 400px;
  }
  .van-tabs__nav--line {
    padding: 0 220px 0 220px;
    // font-size: 3.125rem;
  }
  //   position: absolute;
  //   bottom: 100px;
  //   left: 0;
  //   z-index: 1;
  //   width: 2.5rem;
  //   height: 0.1875rem;
  //   background-color: #ee0a24;
  //   border-radius: 0.1875rem;
  .van-tabs__line {
    position: absolute;
    bottom: 0.02rem;
    left: 0;
    z-index: 1;
    width: 4.5rem;
    height: 6px;
    background-color: #333333;
    border-radius: 0.1875rem;
  }
  .van-tab {
    color: #999999;
  }
  .van-tab--active {
    color: #323233;
    font-weight: 500;
  }
  .van-tab__pane,
  .van-tab__pane-wrapper {
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 100%;
    height: 1385px;
    padding-top: 20px;
  }
  .date {
    width: 100%;
    height: 55px;
    // background: #f5f5f5;
  }
  .datanumber {
    width: 83px;
    height: 55px;
    font-size: 20px;
    margin: 12px 0px 15px 43px;
    line-height: 55px;
  }
  .consecutive {
    width: 750px;
    height: 140px;
    background: #ffffff;
    padding-top: 38px;
    padding-left: 45px;
    margin-bottom: 4px;
  }
  .concount {
    width: 750px;
    height: 64px;
    // background: #333333;
  }
  .counta {
    font-weight: bold;
    font-size: 24px;
  }
  .countb {
    // font-weight: bold;
    font-size: 20px;
  }
}
</style>
